package com.example.rdemo.service;

import java.util.List;

import com.example.rdemo.entity.Goods;
import com.example.rdemo.utils.PageResult;
import org.springframework.stereotype.Service;

/**
 * goodsService接口
 * 
 * @author ruoyi
 * @date 2025-04-03
 */
@Service
public interface GoodsService
{
    //查询goods
    public Goods selectGoodsByGid(Long gid);
    //cid查询
    public Goods selectByCid(Long cid);

    //查询goods列表
    public List<Goods> selectGoodsList(Goods goods);

     //新增goods
    public int insertGoods(Goods goods);

    //修改goods
    public int updateGoods(Goods goods);

    //批量删除goods
    public int deleteGoodsByGids(Long[] gids);

    //删除goods信息
    public int deleteGoodsByGid(Long gid);
}
